package com.ht.medicaltreatment.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.ht.medicaltreatment.R
import com.ht.medicaltreatment.bean.HaoCaiProgressBean

class ProgressIndexAdapter : BaseQuickAdapter<HaoCaiProgressBean.DataBean.ProjectConsumableRecordListBean,BaseViewHolder>(R.layout.item_progress_index_layout) {
    override fun convert(holder: BaseViewHolder, item: HaoCaiProgressBean.DataBean.ProjectConsumableRecordListBean) {
        if(item.id == 0){
            holder.setText(R.id.tvIndex,"待提供")
        }else{
            holder.setText(R.id.tvIndex,"${getItemPosition(item)+1}")
        }
    }
}
